/*
 * @Author: sonss
 * @Date: 2024-09-03 19:46:31
 * @LastEditTime: 2024-09-03 20:30:33
 * @FilePath: /ss-file-antd/src/services/assets_share.ts
 * @Description:  资源分享
 */
import { request } from '@umijs/max';

// 权限校验
export async function Verify(body: ASSETS.SHARE.VerifyRequest) {
  return request<API.Result<ASSETS.SHARE.VerifyResponse>>('/v1/assets/share/verify', {
    method: 'POST',
    data: body,
  });
}

// 翻页首页
export async function ScrollIndex(body: ASSETS.SHARE.ScrollIndexRequest) {
  return request<API.Result<ASSETS.SHARE.ScrollResponse>>('/v1/assets/share/scroll-index', {
    method: 'POST',
    data: body,
  });
}

// 翻页滚动
export async function ScrollPage(body: ASSETS.SHARE.ScrollPageRequest) {
  return request<API.Result<ASSETS.SHARE.ScrollResponse>>('/v1/assets/share/scroll-page', {
    method: 'POST',
    data: body,
  });
}

// 新建分享
export async function Create(body: ASSETS.SHARE.CreateForm) {
  return request<API.Result<ASSETS.SHARE.CreateResponse>>('/v1/assets/share/create', {
    method: 'POST',
    data: body,
  });
}
